package com.yami.shop.bean.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 资金记录对象 t_funds_record
 * 
 * @author zhangchaoqun
 * @date 2021-10-13
 */

@Data
@TableName("tz_subscribe_funds_record")
public class SubscribeFundsRecord  implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ExcelIgnore
    private String id;

    /** 结算日期 */
    @Excel(name = "发生日期",orderNum = "0",exportFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date transDate;

    /** 用户代码 */
    @ExcelIgnore
    private String userId;

    /** 交易金额 */
    @Excel(name = "发生金额",orderNum = "3")
    private BigDecimal money;


    //关联外部id 即流水号
    @Excel(name = "流水号",orderNum = "6")
    private String outId;
    @ExcelIgnore
    private String type;
    /** 业务类型 */
    @Excel(name = "业务类型",orderNum = "4")
    private String typeName;
    @Excel(name = "交易商编号",orderNum = "1")
    private Long shopId;
    @ExcelIgnore
    private String shopName;
    @ExcelIgnore
    private String remark;
    /** 合同号 即流水号*/
    @Excel(name = "合同号",orderNum = "7")
    @JsonSerialize(using= ToStringSerializer.class)
    private String orderId;
    @Excel(name = "资金账号",orderNum = "5")
    private String accout;
    @Excel(name = "交易商名称",orderNum = "2")
    private String userName;
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String transDateStart;
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String transDateEnd;
}
